#include <stdio.h>
#include <string.h>

int main(int argc, char **argv)
{
    char a[101], b[101], c[101], maxstr[101];
    scanf("%s %s %s", a, b, c);
    strcmp(a, b) > 0 ? (strcmp(a, c) > 0 ? strcpy(maxstr, a) : strcpy(maxstr, c)) : (strcmp(b, c) > 0 ? strcpy(maxstr, b) : strcpy(maxstr, c));
    puts(maxstr);
    return 0;
}